﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RelationshipTransferApproval.aspx.cs" Inherits="ZHDJ.PersonalCenter.Module.RelationshipTransfer.RelationshipTransferApproval" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../../../Resource/themes/default/css/party.common.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../../Resource/themes/default/css/party.portal.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../../Resource/themes/default/css/portal.widgets.css" rel="stylesheet"
        type="text/css" />
    
    <style type="text/css">
        .txt {
            padding-bottom: 1px;
            border-bottom: 1px ridge #fff; /* 下划线效果 */
            border-top: 0px;
            border-left: 0px;
            border-right: 0px;
            background-color: transparent; /* 背景色透明 */
            color: #1B163F;
            display: inline-block;
            text-align: center;
            height: 20px;
            line-height: 30px;
        }

        ul {
            margin: 5px auto;
        }

            ul li {
                list-style: none;
                text-align: center;
            }

        .spanLine {
            text-decoration: underline;
        }

        tr {
            padding: 0px 5px;
        }
    </style>
   
</head>
<body>
    <form id="form1" runat="server">
         <f:PageManager ID="PageManager1" runat="server" />
        <div>
            <div style="text-align: center"><span style="font-size: 16px; font-weight: bold;">组织关系转移审批</span></div>
            <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable">
                <tr>
                    <td style="width: 80px">
                        <ul>
                            <li>党</li>
                            <li>员</li>
                            <li>介</li>
                            <li>绍</li>
                            <li>信</li>
                            <li>存</li>
                            <li>根</li>
                        </ul>
                    </td>
                    <td valign="top">
                        <div style="text-align: right; margin-top: 5px; padding: 0px 5px">
                            编号：<span class="txt" style="width: 120px;"><%=TransferModel.SerialNumber%></span>
                        </div>
                        <div style="margin-top: 5px; padding: 0px 5px">
                            &nbsp;&nbsp;&nbsp;&nbsp;<span class="txt" style="width: 150px;"><%=OrgMemberModel.UserName%></span>同志是中共<span
                                class="txt" style="width: 100px;"><%=GetPoliticsLineamentName(OrgMemberModel.PoliticsLineament) %></span>党员，由<span
                                    class="txt" style="width: 250px;"><%= ZHDJ.WebPage.ControlBusiness.GetBranchPickerText(TransferModel.FormerBranchID)%></span>转到<span
                                        class="txt" style="width: 250px;"><%= GetBranchName(TransferModel.TageBranchID)%></span>
                        </div>
                        <div style="text-align: right; margin-top: 5px; padding: 0px 5px">
                            时间：<span class="txt" style="width: 120px;"><%=TransferModel.CreateTime.ToString("yyyy-MM-dd")%></span>
                        </div>
                    </td>
                </tr>
            </table>
            <div style="height: 10px">
            </div>
            <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable">
                <tr>
                    <td>
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tr>
                                <td height="30" align="center">
                                    <span style="font-size: 16px; font-weight: bold;">中国共产党党员组织关系介绍信</span>
                                </td>
                            </tr>
                            <tr>
                                <td height="30" align="right" style="padding: 0px 5px">编号：<span class="txt" style="width: 120px;"><f:TextBox ID="txtOrderNo" runat="server"></f:TextBox> </span>
                                </td>
                            </tr>
                            <tr>
                                <td height="30" style="padding: 0px 5px">
                                    <span class="txt" style="width: 250px;">
                                        <%= GetBranchName(LetterTo)%></span>:
                                </td>
                            </tr>
                            <tr>
                                <td height="30" style="padding: 0px 5px">&nbsp;&nbsp;&nbsp;&nbsp;<span class="txt" style="width: 150px;"><%=OrgMemberModel.UserName%></span>同志(<%=OrgMemberModel.Gender=="0"?"男":"女"%>)，
                                <span class="txt" style="width: 100px;">
                                    <%=TransferModel.Age%></span>岁， <span class="txt" style="width: 100px;">
                                        <%=OrgMemberModel.Nation%></span>族，是中共<span class="txt" style="width: 100px;"><%=GetPoliticsLineamentName(OrgMemberModel.PoliticsLineament) %></span>党员，身份证号码<span
                                            class="txt" style="width: 200px;"><%=OrgMemberModel.IdentityCard%></span>，由<span
                                                class="txt" style="width: 250px;"><%= GetBranchName(TransferModel.FormerBranchID)%></span>去<span
                                                    class="txt" style="width: 250px;"><%= GetBranchName(TransferModel.TageBranchID)%></span>，请转接组织关系。该同志党费交到<span
                                                        class="txt" style="width: 50px;"><%=GetMemberCost(0)%></span>年<span class="txt" style="width: 50px;"><%=GetMemberCost(1)%></span>月。
                                </td>
                            </tr>
                            <tr>
                                <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 200px;"><%= GetBranchName(LetterFrom)%></span></td>

                            </tr>
                            <tr>
                                <td height="30" style="padding: 0px 5px">有效天数：<span class="txt" style="width: 120px;"><f:TextBox ID="txtValidTime" runat="server"></f:TextBox></span>
                                </td>
                                <td height="30" align="right" style="padding: 0px 5px">时间：<span class="txt" style="width: 120px;"><%=TransferModel.CreateTime.ToString("yyyy-MM-dd")%></span>
                                </td>
                            </tr>
                            <tr>
                                <td height="30" style="padding: 0px 5px">党员联系电话或其他联系方式：<span class="txt" style="width: 500px; text-align: left"><%=OrgMemberModel.MobileNo%></span><br />
                                    党员原所在基层党委通讯地址：<span class="txt" style="width: 500px; text-align: left"><%=TransferModel.FromBranchAddress%></span><br />
                                    联系电话：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchMobileNo%></span>
                                    &nbsp; &nbsp; 传真：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchFax%></span>
                                    &nbsp; &nbsp;邮编：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchZip%></span>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 5px"></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <div style="height: 10px">
            </div>
            <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable">
                <tbody>
                    <tr>
                        <td class="fle"><asp:Label runat="server" ID="lblExplain"> 审批意见：</asp:Label>
                        </td>
                        <td class="Right" colspan="3">
                            <asp:TextBox runat="server" ID="txtExplain" TextMode="MultiLine" Width="97%" Height="100px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center">
                            <asp:Button ID="btnArgee" runat="server" Text="同意" OnClick="btnArgee_Click" />
                            <asp:Button ID="btnNotArgee" runat="server" Text="不同意" OnClick="btnNotArgee_Click" />
                            <asp:Button ID="btnCancel" runat="server" Text="取消" OnClientClick="javascript:window.close();return false;" />
                            <asp:HiddenField runat="server" ID="hdTageID" />
                            <asp:HiddenField runat="server" ID="hdFromID" />
                            <asp:HiddenField runat="server" ID="hdLoginID" />

                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4"></td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4">
                            <span style="font-size: 16px; font-weight: bold;">审批记录</span>
                        </td>
                    </tr>
                    <%foreach (System.Data.DataRow dr in ProcessInfo.Rows)
                        { %>

                    <%
                        if (dr["ApprovalResult"].ToString() == "提交申请")
                        {
                    %>
                    <tr>
                        <td class="fle">申请人：
                        </td>
                        <td class="Right">
                            <%=dr["UserName"] %>
                        </td>
                        <td class="fle">状态：
                        </td>
                        <td class="Right">
                            <%=dr["ApprovalResult"]%>
                        </td>
                    </tr>
                    <tr>
                        <td class="fle">日期：
                        </td>
                        <td class="Right">
                            <%=dr["CreateTime"]%>
                        </td>
                        <td class="fle">意见：
                        </td>
                        <td class="Right">
                            <%=dr["Explain"]%>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4"></td>
                    </tr>
                    <% }
                        else
                        {%>
                    <tr>
                        <td class="fle">审批人：
                        </td>
                        <td class="Right">
                            <%=dr["UserName"] %>
                        </td>
                        <td class="fle">审批状态：
                        </td>
                        <td class="Right">
                            <%=dr["ApprovalResult"]%>
                        </td>
                    </tr>
                    <tr>
                        <td class="fle">日期：
                        </td>
                        <td class="Right">
                            <%=dr["CreateTime"]%>
                        </td>
                        <td class="fle">审批意见：
                        </td>
                        <td class="Right">
                            <%=dr["Explain"]%>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4"></td>
                    </tr>
                    <%
                        }
                    %>

                    <%} %>
                </tbody>
            </table>
        </div>
    </form>
</body>
</html>
<script src="../../../../Resource/js/jquery/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#ddlApproval").change(function () {
                var value = $(this).val();
                if (value == '') {
                    $("#btnArgee").attr("disabled", "disabled");
                    $("#btnNotArgee").attr("disabled", "disabled");
                } else {
                    $("#btnArgee").attr("disabled", "");
                    $("#btnNotArgee").attr("disabled", "");
                }
            });
        });

        function UrlRefresh(url) {
            window.parent.location.href = url;
        }
    </script>
